package com.bjc.principle.state;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2021-01-04 14:02
 */
public class Context {
    private State state;

    public void changeState(State state){
        this.state = state;
    }

    public void doSomeThing(){
        state.doWork();
    }
}
